package com.guigu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.guigu.pojo.Merchant;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MerchantMapper extends BaseMapper<Merchant> {
    IPage<Merchant> selectMerchantPage(Page<Merchant> page, @Param("shopName") String shopName, @Param("shopType") String shopType, @Param("startDate") String startDate, @Param("endDate") String endDate);

    IPage<Merchant> MerchantPage(Page<Merchant> page, @Param("shopName") String shopName, @Param("shopType") String shopType, @Param("startDate") String startDate, @Param("endDate") String endDate, @Param("checkTag") String checkTag);

    List<Merchant> selectMerchantWithNickname(@Param("shopName") String shopName, @Param("shopType") String shopType, @Param("startDate") String startDate, @Param("endDate") String endDate);

    Merchant selectMerchantWithNicknameById(@Param("merchantId") Integer merchantId);
}
